package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.order.OrderInfo;
import org.springframework.core.annotation.Order;

import java.util.List;
import java.util.Map;

public interface OrderInfoService {
    Long addOrderInfo(OrderInfo orderInfo,String userId);

    boolean hasStock(Long skuId,Integer skuNum);
    void CancelOrder(Long OrderId);

    OrderInfo getOrderInfo(Long orderId);

    Map initWare(OrderInfo orderInfo);

    List<OrderInfo> orderSplit(Long orderId, String wareSkuMap);


}
